package com.client.model.pojo.loan;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName airui_loan_product
 */
@TableName(value ="airui_loan_product")
@Data
public class AiruiLoanProduct implements Serializable {
    /**
     * 贷款产品表
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 贷款平台
     */
    @TableField(value = "lname")
    private String lname;

    /**
     * 还款日期
     */
    @TableField(value = "repay_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date repayTime;

    /**
     * 该类型贷款的利率
     */
    @TableField(value = "rate_number")
    private BigDecimal rateNumber;

    /**
     * 贷款期限
     */
    @TableField(value = "loan_time")
    private String loanTime;

    /**
     * 冗余字段
     */
    @TableField(value = "remark")
    private Integer remark;

    /**
     *
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
